package com.forenow.demo.demo14;

public class Test {
    public static void main(String[] args) {
        Circle circle=new Circle(5);
        Rect rect=new Rect();
        rect.setHeight(8);
        rect.setWidth(7);
        double area=rect.getArea(8,7);
        System.out.println("长方形面积："+area);
        circle.setCenter(3,7);
        Shape shape=new Shape();
        System.out.println("圆的面积:"+circle.getArea());
    }
}
